<?php
require_once "../php/admin/dataSQL.php";
require_once "../php/admin/rootDB.php";
session_start();
date_default_timezone_set('PRC');
$admin=$_SESSION['admin'];
$adminDb=new rootDB();
$time=date("Y年m月d日 H:i:s",time());
$dataAll=$adminDb->query_admin_all();
$count=count($dataAll);
$data=$adminDb->query_idea_all();
$ideaNum=count($data);

$dataB=$adminDb->query_idear_examine();
$numExamine=count($dataB);
$dataSing=$adminDb->query_sign_all();
$baoMing=count($dataSing);
?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>信息列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="../static/css/font.css">
    <link rel="stylesheet" href="../static/css/xadmin.css">
</head>
<body>
<div class="x-body layui-anim layui-anim-up">
    <blockquote class="layui-elem-quote">欢迎管理员：
        <span class="x-red"><?php echo $admin ?></span>！当前时间:<?php echo $time ?></blockquote>
    <fieldset class="layui-elem-field">
        <legend>数据统计</legend>
        <div class="layui-field-box">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 90px;">
                            <div carousel-item="">
                                <ul class="layui-row layui-col-space10 layui-this">
                                    <li class="layui-col-xs2">
                                        <a href="admin-list.php" class="x-admin-backlog-body">
                                            <h3>站长管理员</h3>
                                            <p>
                                                <cite><?php echo $count ?></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="member-list.php" class="x-admin-backlog-body">
                                            <h3>系统管理员</h3>
                                            <p>
                                                <cite><?php echo $count ?></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="user-list.php" class="x-admin-backlog-body">
                                            <h3>协同成员</h3>
                                            <p>
                                                <cite><?php echo $count ?></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="proposal-list.php" class="x-admin-backlog-body">
                                            <h3>新增反馈</h3>
                                            <p>
                                                <cite><?php echo $ideaNum ?></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="proposal-list.php" class="x-admin-backlog-body">
                                            <h3>未审核建议</h3>
                                            <p>
                                                <cite><?php echo $numExamine  ?></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="sign-list.php" class="x-admin-backlog-body">
                                            <h3>报名人数</h3>
                                            <p>
                                                <cite><?php echo $baoMing  ?></cite></p>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>

    <fieldset class="layui-elem-field">
        <legend>开发团队</legend>
        <div class="layui-field-box">
            <table class="layui-table">
                <tbody>
                <tr>
                    <th>版权所有</th>
                    <td>xianghai
                        <a href="http://www.wangjibu.top/" class='x-a' target="_blank">访问官网</a></td>
                </tr>
                <tr>
                    <th>开发者</th>
                    <td>xianghai(940023198@qq.com)</td></tr>
                </tbody>
            </table>
        </div>
    </fieldset>
</div>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
</body>
</html>